﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Circle:Shape
    {
        private double _radius;
        public Circle()
        { }
        public Circle(double r)
        {
            this.Radius = r;
        }

        public double Radius { get => _radius; set => _radius = value; }
        public override void GetArea()
        {
            this.Mianji = (this.Radius * this.Radius) * 3.14;
            base.GetArea();
        }
    }
    class Square:Shape
    {
        private double _sideLen;

        public double SideLen { get => _sideLen; set => _sideLen = value; }
        public Square() { }
        public Square(double b)
        {
            this.SideLen = b;
        }
        public override void GetArea()
        {
            this.Mianji = this.SideLen * this.SideLen;
            base.GetArea();
        }
    }
}
